Skip to main content
Glama

Stock Market Research Assistant

by kvssankar
utils.js•907 B
// utils.js import path from "path"; import fs from "fs"; import { fileURLToPath } from "url"; // Get the directory name of the current module const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); /** * Loads configuration from mcpconfig.json file * @returns {Object} The parsed configuration object */ export function loadConfig() { try { const config = JSON.parse( fs.readFileSync(path.join(__dirname, "mcpconfig.json"), "utf8") ); return config; } catch (error) { console.warn( "Could not read mcpconfig.json, using defaults:", error.message ); return { server_name: "anthropic-mcp-server", host: "0.0.0.0", port: 8000, server_version: "1.0.0", tool_names: [], mode: "sse", // Default mode refresh_time_minutes: 1440, // 24 hours by default envs: [], }; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kvssankar/openapitools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server